package com.example.lulala.case0_16110100428.factory;

import com.example.lulala.case0_16110100428.iface.WeatherIface;
import com.example.lulala.case0_16110100428.model.Weather51Model;
import com.example.lulala.case0_16110100428.model.WeatherModel;

public class WeatherFactory {
    public static WeatherIface getInstance(String url){
        if(url.equals("weather")){
            //return WeatherModel.getInstance();
            return new WeatherModel();
        }
        else{
            //return Weather51Model.getInstance();
            return new Weather51Model();
        }
    }
}
